package com.kun.util;

import com.kun.constant.SecurityConstant;

/**
 * @author kun.li
 */
public class BuildKeyUtil {

    public static String buildKey(String username){
        return String.format("%s:%s", SecurityConstant.SYS_AUTHORITIES_RULE,username);
    }

    public static String buildTenantKey(String username,String tenantId){
        return String.format("%s:%s:%s", SecurityConstant.SYS_AUTHORITIES_RULE,username,tenantId);
    }
}
